package com.charlotte.study.gupao.builder.common;

/**
 * @author junjie.ding
 * @date 2020/3/2
 */
public class CourseBuilder {

    private JavaCourse javaCourse = new JavaCourse();

    public CourseBuilder addName(String name){
        javaCourse.setName(name);
        return this;
    }

    public CourseBuilder addPpt(String ppt){
        javaCourse.setPpt(ppt);
        return this;
    }

    public CourseBuilder addVideo(String video){
        javaCourse.setVideo(video);
        return this;
    }

    public CourseBuilder addNote(String note){
        javaCourse.setNote(note);
        return this;
    }

    public CourseBuilder addHomework(String homework){
        javaCourse.setHomework(homework);
        return this;
    }

    public JavaCourse bulid(){
        return javaCourse;
    }
}
